<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>std.ctype</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "std.ctype";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/std.ctype.html" class="symbol">std.ctype</a></h1>
  
<div class="summary">Simple ASCII character classification functions.
 For Unicode classification, see <a href="std_uni.html">std.uni</a>.</div>
<p class="sec_header">References:</p><a href="http://www.digitalmars.com/d/ascii-table.html">ASCII Table</a>,
        <a href="http://en.wikipedia.org/wiki/Ascii">Wikipedia</a>
<dl>
<dt class="decl">int <a class="symbol _function" name="isalnum" href="./htmlsrc/std.ctype.html#L23" kind="function" beg="23" end="23">isalnum</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isalnum" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L23">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is a letter in the range (0..9, a..z, A..Z).</div></dd>
<dt class="decl">int <a class="symbol _function" name="isalpha" href="./htmlsrc/std.ctype.html#L28" kind="function" beg="28" end="28">isalpha</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isalpha" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L28">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is an ascii upper or lower case letter.</div></dd>
<dt class="decl">int <a class="symbol _function" name="iscntrl" href="./htmlsrc/std.ctype.html#L33" kind="function" beg="33" end="33">iscntrl</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#iscntrl" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L33">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is a control character.</div></dd>
<dt class="decl">int <a class="symbol _function" name="isdigit" href="./htmlsrc/std.ctype.html#L38" kind="function" beg="38" end="38">isdigit</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isdigit" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L38">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is a digit.</div></dd>
<dt class="decl">int <a class="symbol _function" name="islower" href="./htmlsrc/std.ctype.html#L43" kind="function" beg="43" end="43">islower</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#islower" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L43">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is lower case ascii letter.</div></dd>
<dt class="decl">int <a class="symbol _function" name="ispunct" href="./htmlsrc/std.ctype.html#L48" kind="function" beg="48" end="48">ispunct</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#ispunct" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L48">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is a punctuation character.</div></dd>
<dt class="decl">int <a class="symbol _function" name="isspace" href="./htmlsrc/std.ctype.html#L54" kind="function" beg="54" end="54">isspace</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isspace" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L54">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is a space, tab, vertical tab, form feed,
 carriage return, or linefeed.</div></dd>
<dt class="decl">int <a class="symbol _function" name="isupper" href="./htmlsrc/std.ctype.html#L59" kind="function" beg="59" end="59">isupper</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isupper" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L59">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is an upper case ascii character.</div></dd>
<dt class="decl">int <a class="symbol _function" name="isxdigit" href="./htmlsrc/std.ctype.html#L64" kind="function" beg="64" end="64">isxdigit</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isxdigit" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L64">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is a hex digit (0..9, a..f, A..F).</div></dd>
<dt class="decl">int <a class="symbol _function" name="isgraph" href="./htmlsrc/std.ctype.html#L69" kind="function" beg="69" end="69">isgraph</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isgraph" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L69">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is a printing character except for the space character.</div></dd>
<dt class="decl">int <a class="symbol _function" name="isprint" href="./htmlsrc/std.ctype.html#L74" kind="function" beg="74" end="74">isprint</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isprint" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L74">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is a printing character including the space character.</div></dd>
<dt class="decl">int <a class="symbol _function" name="isascii" href="./htmlsrc/std.ctype.html#L79" kind="function" beg="79" end="79">isascii</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isascii" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L79">#</a></dt>
<dd class="ddef">
<div class="summary">Returns !=0 if c is in the ascii character set, i.e. in the range 0..0x7F.</div></dd>
<dt class="decl">dchar <a class="symbol _function" name="tolower" href="./htmlsrc/std.ctype.html#L86" kind="function" beg="86" end="94">tolower</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#tolower" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L86">#</a></dt>
<dd class="ddef">
<div class="summary">If c is an upper case ascii character,
 return the lower case equivalent, otherwise return c.</div></dd>
<dt class="decl">dchar <a class="symbol _function" name="toupper" href="./htmlsrc/std.ctype.html#L101" kind="function" beg="101" end="109">toupper</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#toupper" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L101">#</a></dt>
<dd class="ddef">
<div class="summary">If c is a lower case ascii character,
 return the upper case equivalent, otherwise return c.</div></dd>
<dt class="decl"><a class="symbol _enum" name="enum" href="./htmlsrc/std.ctype.html#L113" kind="enum" beg="113" end="124">enum</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#enum" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L113">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl"><a class="symbol _enummem" name="enum._SPC" href="./htmlsrc/std.ctype.html#L115" kind="enummem" beg="115" end="115">_SPC</a> <a title="Permalink to this symbol" href="#enum._SPC" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L115">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum._CTL" href="./htmlsrc/std.ctype.html#L116" kind="enummem" beg="116" end="116">_CTL</a> <a title="Permalink to this symbol" href="#enum._CTL" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L116">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum._BLK" href="./htmlsrc/std.ctype.html#L117" kind="enummem" beg="117" end="117">_BLK</a> <a title="Permalink to this symbol" href="#enum._BLK" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L117">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum._HEX" href="./htmlsrc/std.ctype.html#L118" kind="enummem" beg="118" end="118">_HEX</a> <a title="Permalink to this symbol" href="#enum._HEX" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L118">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum._UC" href="./htmlsrc/std.ctype.html#L119" kind="enummem" beg="119" end="119">_UC</a> <a title="Permalink to this symbol" href="#enum._UC" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L119">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum._LC" href="./htmlsrc/std.ctype.html#L120" kind="enummem" beg="120" end="120">_LC</a> <a title="Permalink to this symbol" href="#enum._LC" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L120">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum._PNC" href="./htmlsrc/std.ctype.html#L121" kind="enummem" beg="121" end="121">_PNC</a> <a title="Permalink to this symbol" href="#enum._PNC" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L121">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum._DIG" href="./htmlsrc/std.ctype.html#L122" kind="enummem" beg="122" end="122">_DIG</a> <a title="Permalink to this symbol" href="#enum._DIG" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L122">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="enum._ALP" href="./htmlsrc/std.ctype.html#L123" kind="enummem" beg="123" end="123">_ALP</a> <a title="Permalink to this symbol" href="#enum._ALP" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L123">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">ubyte _ctype[128] <a class="symbol _variable" name="_ctype" href="./htmlsrc/std.ctype.html#L126" kind="variable" beg="126" end="145">_ctype</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#_ctype" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L126">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _unittest" name="unittest" href="./htmlsrc/std.ctype.html#L148" kind="unittest" beg="148" end="155">unittest</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#unittest" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/std.ctype.html#L148">#</a></dt>
<dd class="ddef"></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 1999-2008 by Digital Mars ®, All Rights Reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Sun Dec 28 04:26:38 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>